package com.game
{
	import com.game.performers.Actor;
	
	import mx.collections.ArrayCollection;
	import mx.formatters.DateFormatter;
	import mx.utils.ObjectProxy;

	public class Global
	{
		public static var user:ObjectProxy;
		
		public static var ctrlrole:ObjectProxy;
		
		public static var rolelist:ArrayCollection = new ArrayCollection();
		
		public function Global()
		{
		}
		
		public static function showDate(data:Object,target:Object):String
		{
			var date:Date = new Date();
			date.setTime(data[target.dataField]*1000);
			return date.fullYear+"-"+(date.month+1)+"-"+date.date;
		}
		
		public static function showDateDetail(data:Object,target:Object):String
		{
			var date:Date = new Date();
			date.setTime(data[target.dataField]*1000);
			return (date.month+1)+"-"+date.date+" "+date.getHours()+":"+date.getMinutes();
		}
	}
}